home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / SC68KBuildAll < prev   
Encoding:
Text File  |  1996-09-17  |  2.6 KB  |  99 lines  |  [TEXT/MPS ]

  1. # Full build script for Symantec 68K 
  2. #
  3. #    SC68KBuildAll [Debug|Release] [Clean] [ODFLibrary] [NoExamples]
  4. #
  5. #        [Debug|Release] :    debug or release build. Debug by default
  6. #        [Clean]            :    Will delete all cpp.o files
  7. #        [ODFLibrary]    :    Will only build the ODFLibrary
  8. #        [NoExamples]    :    Will not build the ODF examples
  9. #
  10. # This script assumes that you have placed UserStartup•ODF in your MPW folder.
  11. #
  12. # NOTE: The CyberStarter example is not currently built due to a lack of native
  13. # C++ exception handling which is required. However, you can build this example
  14. # Metrowerks CodeWarrior compiler.
  15.  
  16. if "{ODF}" == ""
  17.     Beep
  18.     Beep
  19.     Echo "### SC68KBuildAll" 
  20.     Echo "### You have not installed the 'UserStartup•ODF' file (or 'UserStartupTS•ODF' for ToolServer)." 
  21.     Echo "### Please do so before continuing. Those files are located in the 'Getting Started'" 
  22.     Echo "### folder. Don't forget to relaunch MPW (or ToolServer)." 
  23.     exit
  24. end
  25.  
  26. Set TheBuild ""
  27. Set Clean 0
  28. Set Examples 1
  29. Set StaticLib 1
  30.  
  31. For item in {Parameters}
  32.     if {item} == Debug
  33.         Set TheBuild "Debug"
  34.     else if {item} == debug
  35.         Set TheBuild "Debug"
  36.     else if {item} == Release
  37.         Set TheBuild Release
  38.     else if {item} == release
  39.         Set TheBuild Release
  40.     else if {item} == Clean
  41.         Set Clean 1
  42.     else if {item} == clean
  43.         Set Clean 1
  44.     else if {item} == ODFLibrary
  45.         Set StaticLib 0
  46.         Set Examples 0
  47.     else if {item} == odflibrary
  48.         Set StaticLib 0
  49.         Set Examples 0
  50.     else if {item} == NoExamples
  51.         Set Examples 0
  52.     else if {item} == noexamples
  53.         Set Examples 0
  54.     else if {item} == Noexamples
  55.         Set Examples 0
  56.     else 
  57.         Echo "SC68KBuildAll [Debug|Release] [Clean] [ODFLibrary] [NoExamples]"
  58.         Exit
  59.     end
  60. End
  61.  
  62. if {TheBuild} == ""
  63.     Set TheBuild Debug
  64. end
  65.  
  66. Set Exit 0
  67. if {Clean} == 1
  68.     Echo "# `Date -t` ----- Cleaning 68K object files."
  69.     Delete -y `Files -f -s "{ODF}SL68K{TheBuild}:Obj:" ≥≥ Dev:NULL` ≥≥ Dev:NULL
  70.     Delete -y `Files -f -s "{ODF}SC68K{TheBuild}:Obj:" ≥≥ Dev:NULL` ≥≥ Dev:NULL
  71.     if {Examples} == 1
  72.         For example In ColorExtension Bitmap Button Clock Container Draw Embed Form Hello Nothing Table ViewTester
  73.             Delete -y `Files -f -s "{ODFDev}{example}:SC68K{TheBuild}:Obj:" ≥≥ Dev:NULL`  ≥≥ Dev:NULL
  74.         End
  75.     End
  76. End
  77.  
  78. Set Exit 1
  79.  
  80. Echo "# `Date -t` ----- Starting 68K build."
  81.  
  82. # ----- Build ODF Shared Library
  83. "{ODF}SL68K{TheBuild}:Build"
  84.  
  85. # ----- Build ODF Static Libraries
  86. if {StaticLib} == 1
  87.     "{ODF}SC68K{TheBuild}:Build"
  88. End
  89.  
  90. # ----- Build ODF Samples
  91. if {Examples} == 1
  92.     For example In ColorExtension Bitmap Button Clock Container Draw Embed Form Hello Nothing Table ViewTester
  93.         "{ODFDev}{example}:SC68K{TheBuild}:Build"
  94.     End
  95. End
  96.  
  97. Echo "# `Date -t` ----- Finished 68K build."
  98.  
  99.